﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace FuelTracker.Services
{
    public static class Uris
    {
        public static readonly Uri MainView ="/Views/MainView.xaml".ToUri();
        public static readonly Uri VehiclesView = "/Views/VehiclesView.xaml".ToUri();
        public static readonly Uri CreateVehicleView = "/Views/CreateVehicleView.xaml".ToUri();
        public static readonly Uri CreateFuelLogView = "/Views/CreateFuelLogView.xaml".ToUri();
        private static readonly string FuelLogsViewUrl = "/Views/FuelLogsView.xaml?vehicleName=";

        private static Uri ToUri(this string uri)
        {
            return new Uri(uri, UriKind.Relative);
        }

        public static Uri FuelLogsView(String vehicleName)
        {
            return (FuelLogsViewUrl + vehicleName).ToUri();
        }
    }
}
